from lib.handler.verify_handler import VerifyHandler
from lib.init.application_init import ApplicationInit
from lib.property.application_property import ApplicationProperty


class SystemConfig:
    PROD = "prod"
    LOCAL = "local"
    TEST = "test"

    @staticmethod
    def get_env():
        return ApplicationInit.prop.get(ApplicationProperty.SYSTEM_ENV)

    @staticmethod
    def get_chrome_driver_path():
        return ApplicationInit.prop.get(ApplicationProperty.SYSTEM_DRIVER_CHROME_ADDRESS)

    @staticmethod
    def get_chrome_firebox_path():
        return ApplicationInit.prop.get(ApplicationProperty.SYSTEM_DRIVER_FIREBOX_ADDRESS)

    @staticmethod
    def get_p_screen_image_path():
        return ApplicationInit.prop.get(ApplicationProperty.SYSTEM_P_SCREEN_ADDRESS)

    @staticmethod
    def get_chanel_name_list():
        channel_name = ApplicationInit.prop.get(ApplicationProperty.SYSTEM_CHANNEL_NAME)
        if channel_name:
            return str(channel_name).split(",")
        return None

    @staticmethod
    def get_verify_data():
        data = [VerifyHandler.verify.username, VerifyHandler.verify.password, VerifyHandler.verify.id]
        return data


